package com.ibbi.admin.client.front;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.RootPanel;

import corelib.client.resource.CommonResources;
import corelib.client.ui.widget.panel.SimpleLayoutPanel;

public class Perspective {
	
	public static void show() {
		Header header 		= new Header();
		WorkBench workBench = new WorkBench();
		
		SimpleLayoutPanel panel = new SimpleLayoutPanel();
		panel.addStyleName(CommonResources.INSTANCE.css().absoluteFill());
		panel.add(header.getWidget());
		panel.add(workBench.getWidget());
		panel.setWidgetTopHeight(header.getWidget(), 0, Unit.PX, 80, Unit.PX);
		panel.setWidgetTopBottom(workBench.getWidget(), 80, Unit.PX, 0, Unit.PX);
		RootPanel.get().add(panel);
	}
}
